package com.ny.query;

import lombok.Data;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.groups.Default;
import java.util.Date;

/**
 * 查询条件
 *
 * @author MSI-NB
 * @date 2025-03-08 13:14:38
 */
@Data
public class MemberQuery {

    /**
     * 会员ID:会员ID
     */
    @NotNull(groups = { QueryGroup.class }, message = "会员ID不能为空")
    @ApiModelProperty(value = "会员ID:会员ID")
    private Integer memberId;

    /**
     * 会员等级ID:会员等级ID
     */
    @NotNull(groups = { QueryGroup.class }, message = "会员等级ID不能为空")
    @Positive(message = "会员等级ID必须为正数")
    @ApiModelProperty(value = "会员等级ID:会员等级ID")
    private Integer levelId;

    /**
     * 分析日期:分析日期
     */
    @NotNull(groups = { QueryGroup.class, Default.class }, message = "分析日期不能为空")
    @ApiModelProperty(value = "分析日期:分析日期")
    private java.util.Date analysisDate;
}
